Install the Compose plugin

您所在的位置:网站首页 docker arch Install the Compose plugin

Install the Compose plugin

2024-07-11 00:22| 来源: 网络整理| 查看: 265

To download and install the Compose CLI plugin, run:

$ DOCKER_CONFIG=${DOCKER_CONFIG:-$HOME/.docker} $ mkdir -p $DOCKER_CONFIG/cli-plugins $ curl -SL https://github.com/docker/compose/releases/download/v2.28.1/docker-compose-linux-x86_64 -o $DOCKER_CONFIG/cli-plugins/docker-compose

This command downloads the latest release of Docker Compose (from the Compose releases repository) and installs Compose for the active user under $HOME directory.

To install:

Docker Compose for all users on your system, replace ~/.docker/cli-plugins with /usr/local/lib/docker/cli-plugins.A different version of Compose, substitute v2.28.1 with the version of Compose you want to use.For a different architecture, substitute x86_64 with the architecture you want.

Apply executable permissions to the binary:

$ chmod +x $DOCKER_CONFIG/cli-plugins/docker-compose

or, if you chose to install Compose for all users:

$ sudo chmod +x /usr/local/lib/docker/cli-plugins/docker-compose

Test the installation.

$ docker compose version Docker Compose version v2.28.1


【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3